import { createRouter, createWebHashHistory } from 'vue-router'
import Stock from '@/views/Stock.vue'
import Shelf from '@/views/Shelf.vue'
import Setting from '@/views/Setting.vue'

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'shelf',
      component: Shelf
    },
    {
      path: '/stock',
      name: 'stock',
      component: Stock 
    },
    {
      path: '/setting',
      name: 'setting',
      component: Setting 
    }
  ]
})

export default router
